package lession;

public class Demo4 {

	public static void main(String[] args) {
		int num = 1234;
				
		int num1 = num/1000;
		int num2 = num/100%10;
		int num3 = num%1000%100/10;
		int num4 = num%1000%100%10;
		
		System.out.println(num1);
		System.out.println(num2);
		System.out.println(num3);
		System.out.println(num4);
		
	}
}

